package cn.haoxsf.app.common.constant.order;

import lombok.Getter;

/**
 * @program: app
 * @description: 订单常量枚举
 * @author: Ele qvbanfm@qq.com
 * @create: 2020-03-27 14:25
 **/
@Getter
public enum OrderConstant {
    // 订单状态:CANCEL-已取消-UNPAID-未付款，PAID-已付款，RECEIVED-已接单，SUCCESS-交易成功，CLOSE-交易关闭
    CANCEL("已取消", "CANCEL"),
    RECEIVED("已接单", "RECEIVED"),
    SUCCESS("交易成功", "SUCCESS"),
    CLOSE("交易关闭", "CLOSE"),
    UNPAID("未付款","UNPAID"),
    ON_LINE("线上支付","ON-LINE"),
    PAID("已付款","PAID")
    ;
    private String name;
    private String code;

    OrderConstant(String name, String code) {
        this.name = name;
        this.code = code;
    }
}
